<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        version="1.0">
    <xsl:param  name="message" />
    <xsl:output method="html"
                version="1.0"
                encoding="UTF-8"
                indent="yes" />
    <xsl:template match="/">
        <html>
            <head>
                <title>Graph Store Protocol Validator</title>
            </head>
            <body>
                <h1>Graph Store Protocol Validator</h1>
                <xsl:if test="$message">
                    <span style="color:red"><xsl:value-of select="$message"/></span>
                </xsl:if>
                <form method='POST' action='gsp.validator.run'>
                    <table border="0" width="800px">
                        <tr>
                            <th>Implementation URL</th>
                            <td>
                                <input id="doap_project_url" name="doap_project_url" size="50" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <th>Implementation name</th>
                            <td>
                                <input id="doap_project_name" name="doap_project_name" size="30" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <th>Graph Sore URL (internal)</th>
                            <td>
                                <input id="gs_url_internal" name="gs_url_internal" size="50" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <th>Graph Store URL</th>
                            <td>
                                <input id="gs_url" name="gs_url" size="80" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input value="Validate" type="submit" size="10em"></input>
                            </td>
                        </tr>
                    </table>
                </form>
                <hr></hr>
                <p>Note, this service assumes the graph store it is validating is initially empty or at least
                   does not have RDF graphs with graph IRIs exercised by this validation.</p>
                <p>Also, the <em>internal</em> Graph Store URL should be provided if the URL that the validator uses
                    to interact with the graph store is different from the common prefix of graph IRI's in the store.
                    This might be the case, for example, if the Graph Store protocol implementation
                    resides behind an external web server that performs URL re-writing.</p>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>